<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>单选组卷预览</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
		<load href= "__JS__/jshelper.js" /> 
		<script type="text/JavaScript">
			function choicetedit(id,testid){
				window.location.href="__URL__/choicetedit/testid/"+testid+"/id/"+id;
			}
			function choicetdelete(id,testid){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/choicedelete');
					postwith('__URL__/choicetdelete',{id:id,testid:testid});
				}
			}
			
			window.onload=show;
		</script>
		<load href="__JS__/jQuery/jquery.js" />
       	<load href="__JS__/jQuery/jquery.form.js" />
	</head>
	<body>	
		<layout name="Auth:header" />
    	<div class="container-fluid">
     		<div class="row-fluid">
  			  <layout name="Auth:leftmenu" />
              	 <div class="span8">
                    <div class="hero-unit">
                  	<h1>单选组卷预览</h1>
                    <p style="font-size:12px">当前位置：
                        <a href='__APP__/index/index' class="nowpositionhref">主页</a>>
                        <a href='__URL__/index' class="nowpositionhref">后台管理</a>>
                        <a href='__URL__/choose1' class="nowpositionhref">测试管理</a>>
                        <a href='__URL__/testdetail' class="nowpositionhref">试题管理</a>>
                        <a href='__URL__/testpackage/id/{$testid}' class="nowpositionhref">组卷</a>>
                        <a href='__URL__/choicetdetail1/id/{$testid}' class="nowpositionhref">单选组卷</a>>
                        <a href="">单选组卷预览</a>
                    </p>
                  	</div>
	
			<a href='__URL__/testpackage/id/{$testid}' class="btn btn-success" style="width:80px;">返回组卷</a>
				<table width="100%"  class="table table-striped table-bordered table-condensed">
					<load href"__PUBLIC__/js/list_show.js">
					<input type='hidden' name='testid' value='{$testid}'>
                    <thead>
                    	<tr>
                        	<th style="width:5%">题号</th>
                            <th style="width:77%">题干</th>
                            <th style="width:8%">分值</th>
                            <th style="width:10%">操作</th>
                        </tr>
                    </thead>
					<tbody id="tab">
						<volist name='list' id='vo' >
							<tr id="table_choice_show">
								<td>{$vo.number}</td>
								<td>{$vo.name}<br>A:{$vo.A}<br>B:{$vo.B}<br>C:{$vo.C}<br>D:{$vo.D}<br></td>
								<td>{$vo.score}</td>
								<td>
									<a href="javascript:choicetedit('{$vo.id}','{$testid}')">设置</a>
									<a  href="javascript:choicetdelete('{$vo.id}','{$testid}')">删除</a>
								</td>
                            </tr>
						</volist>
					</tbody>
				</table>
					<p class="navbar-text pull-right">{$page}</p>
		</div>
		</div>
       </div>
	</body>
</html>